﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Telerik.Windows.Controls;
using Telerik.Windows.Data;
using DIST.LR.ZHJG.Pgybc.Zbgl_Manager;
using DIST.LR.ZHJG.Events;
using DIST.LR.ZHJG.DataModel;
using System.Collections.ObjectModel;
using System.ComponentModel;

namespace DIST.LR.ZHJG.Pgybc
{
    public partial class Zbgl_KPITYPE : UserControl
    {
        Zbgl_KPITYPEModel kpiTypeModel = new Zbgl_KPITYPEModel();
        public Zbgl_KPITYPE()
        {
            InitializeComponent();
            EventAggregatorRepository
                .EventAggregator.GetEvent<GridKpiTypeEvent>()
                .Subscribe(GetKpiTypeEvent);
        }
        public void GetKpiTypeEvent(ObservableCollection<KPIType> kpiModel)
        {
            kpiTypeModel.KpiTypeInfo = kpiModel;
            this.DataContext = kpiTypeModel;
        }

        private void notify_Click(object sender, RoutedEventArgs e)
        {

        }

        private void delete_Click(object sender, RoutedEventArgs e)
        {

        }
    }
}
